package com.yan.thread;

/**
 * @author taoge
 * @Date 2024/8/7 11:38
 * @Description 第二种创建线程方式
 */
public class ThreadDemo2 {
    public static void main(String[] args) {
        MyTesk01 myTesk01 = new MyTesk01();
        Thread t1 = new Thread(myTesk01);
        Thread t2 = new Thread(myTesk01, "线程A");
        t1.start();
        t2.start();
    }
}
